<style>
tr{
	height:30px;
}
td{
	padding:0 3px;
}
</style>
<div class="container" style="height:150px;">
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'slide-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr height="30">
		<td align="right" width="20%"><?php echo $form->labelEx($model,'pic'); ?>: </td>
		<td align="left" width="50%"><?php echo $form->FileField($model,'pic'); ?>&nbsp;<?=$size?></td>
		<td align="left"><?php echo $form->error($model,'pic'); ?></td>
	</tr>
	<?php
	if($class==3){
	?>
	<tr height="30">
		<td align="right" width="20%"><?php echo $form->labelEx($model,'title'); ?>: </td>
		<td align="left" width="50%"><?php echo $form->textField($model,'title',array('size'=>50)); ?></td>
		<td align="left"><?php echo $form->error($model,'title'); ?></td>
	</tr>
	<?php
	}
	?>
	<tr height="30">
		<td align="right" width="20%"><?php echo $form->labelEx($model,'link'); ?>: </td>
		<td align="left" width="50%"><?php echo $form->textField($model,'link',array('size'=>50,'maxlength'=>200)); ?></td>
		<td align="left"><?php echo $form->error($model,'link'); ?></td>
	</tr>
	<tr height="30">
		<td align="right" width="20%"><?php echo $form->labelEx($model,'hot'); ?>: </td>
		<td align="left" width="50%"><?php echo $form->textField($model,'hot',array('size'=>10)); ?></td>
		<td align="left"><?php echo $form->error($model,'hot'); ?></td>
	</tr>	
	<tr height="30">
		<td colspan="3" style="padding-left:160px;"><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?></td>
	</tr>
</table>
<?php $this->endWidget(); ?>
</div><!-- form -->
</div>